var express = require('express');
var router = express.Router();

exports.init = function (app) {
  app.use('/', router);
};

/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', {
    layout: 'layout',
    title: '首页'
  });
});

/* GET home page. */
router.get('/list', function (req, res, next) {
  res.render('list', {
    layout: 'layout',
    title: '循环demo',
    items: [1991, 'byvoid', 'express', 'Node.js']
  });
});